﻿<ResourceDictionary
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">

	<Style x:Key="Button" TargetType="Button">
		<Setter Property="Background" Value="Black"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Button">
					<Border x:Name="RootElement">
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal">
									<Storyboard>
										<ColorAnimation Duration="0" Storyboard.TargetName="BorderBrush" Storyboard.TargetProperty="Color" To="White"/>
										<ColorAnimation Duration="0" Storyboard.TargetName="ForegroundBrush" Storyboard.TargetProperty="Color" To="White"/>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<ColorAnimation Duration="0:0:0.5" Storyboard.TargetName="BorderBrush" Storyboard.TargetProperty="Color" To="LightBlue"/>
										<ColorAnimation Duration="0" Storyboard.TargetName="ForegroundBrush" Storyboard.TargetProperty="Color" To="LightBlue"/>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Pressed">
									<Storyboard>
										<ColorAnimation Duration="0" Storyboard.TargetName="BorderBrush" Storyboard.TargetProperty="Color" To="Gold"/>
										<ColorAnimation Duration="0" Storyboard.TargetName="ForegroundBrush" Storyboard.TargetProperty="Color" To="Gold"/>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<ColorAnimation Duration="0" Storyboard.TargetName="BorderBrush" Storyboard.TargetProperty="Color" To="Gray"/>
										<ColorAnimation Duration="0" Storyboard.TargetName="ForegroundBrush" Storyboard.TargetProperty="Color" To="Gray"/>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border BorderThickness="{TemplateBinding BorderThickness}">
							<Border.Background>
								<SolidColorBrush x:Name="BackgroundBrush" Color="Black"/>
							</Border.Background>
							<Border.BorderBrush>
								<SolidColorBrush x:Name="BorderBrush" Color="White"/>
							</Border.BorderBrush>
							<ContentControl VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5,2">
								<ContentControl.Foreground>
									<SolidColorBrush x:Name="ForegroundBrush" Color="White"/>
								</ContentControl.Foreground>
								<ContentPresenter/>
							</ContentControl>
						</Border>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>

	<Style x:Key="TabItem" TargetType="sdk:TabItem">
		<Setter Property="Background" Value="Black"/>
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="sdk:TabItem">
					<Border x:Name="RootElement">
						<VisualStateManager.VisualStateGroups>
							<VisualStateGroup x:Name="CommonStates">
								<VisualState x:Name="Normal">
									<Storyboard>
										<ColorAnimation Duration="0" Storyboard.TargetName="BorderBrush" Storyboard.TargetProperty="Color" To="White"/>
										<ColorAnimation Duration="0" Storyboard.TargetName="ForegroundBrush" Storyboard.TargetProperty="Color" To="White"/>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="MouseOver">
									<Storyboard>
										<ColorAnimation Duration="0" Storyboard.TargetName="BorderBrush" Storyboard.TargetProperty="Color" To="LightBlue"/>
										<ColorAnimation Duration="0" Storyboard.TargetName="ForegroundBrush" Storyboard.TargetProperty="Color" To="LightBlue"/>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Disabled">
									<Storyboard>
										<ColorAnimation Duration="0" Storyboard.TargetName="BorderBrush" Storyboard.TargetProperty="Color" To="Gray"/>
										<ColorAnimation Duration="0" Storyboard.TargetName="ForegroundBrush" Storyboard.TargetProperty="Color" To="Gray"/>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
							<VisualStateGroup x:Name="SelectionStates">
								<VisualState x:Name="Selected">
									<Storyboard>
										<ColorAnimation Duration="0" Storyboard.TargetName="BorderBrush" Storyboard.TargetProperty="Color" To="CornflowerBlue"/>
										<ColorAnimation Duration="0" Storyboard.TargetName="ForegroundBrush" Storyboard.TargetProperty="Color" To="CornflowerBlue"/>
									</Storyboard>
								</VisualState>
								<VisualState x:Name="Unselected">
									<Storyboard>
										<ColorAnimation Duration="0" Storyboard.TargetName="BorderBrush" Storyboard.TargetProperty="Color" To="White"/>
										<ColorAnimation Duration="0" Storyboard.TargetName="ForegroundBrush" Storyboard.TargetProperty="Color" To="White"/>
									</Storyboard>
								</VisualState>
							</VisualStateGroup>
						</VisualStateManager.VisualStateGroups>
						<Border BorderThickness="{TemplateBinding BorderThickness}">
							<Border.Background>
								<SolidColorBrush x:Name="BackgroundBrush" Color="Black"/>
							</Border.Background>
							<Border.BorderBrush>
								<SolidColorBrush x:Name="BorderBrush" Color="White"/>
							</Border.BorderBrush>
							<ContentControl VerticalAlignment="Center" HorizontalAlignment="Center" Margin="5,2" Content="{TemplateBinding Header}">
								<ContentControl.Foreground>
									<SolidColorBrush x:Name="ForegroundBrush" Color="White"/>
								</ContentControl.Foreground>
							</ContentControl>
						</Border>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>
